package br.ufrr.patrimonio.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import br.ufrr.patrimonio.converter.BaseEntity;

@Entity
public class Patrimonio implements Serializable, BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="pat_id")
	private Long id;
	
	@Column(name="pat_tombo")
	private Integer tombo;
	
	@Column(name="pat_obs")
	private String obs;
	
	@Column(name="pat_status")
	private String status;
	
	@ManyToOne
	@JoinColumn(name="fk_setor")
	private Setor setor;
	
	@ManyToOne
	@JoinColumn(name="fk_item")
	private Item item;

		
	/** Getters And Setters **/
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public Integer getTombo() {
		return tombo;
	}

	public void setTombo(Integer tombo) {
		this.tombo = tombo;
	}

	public String getObs() {
		return obs;
	}

	public void setObs(String obs) {
		this.obs = obs;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Setor getSetor() {
		return setor;
	}

	public void setSetor(Setor setor) {
		this.setor = setor;
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}
	
	
}
